<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生仪表盘</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container mt-5">
    <h1 class="text-center">学生仪表盘</h1>
    <ul class="list-group">
        <li class="list-group-item"><a href="/student/view-history-scores">已修历史成绩查看</a></li>
        <li class="list-group-item"><a href="/student/view-current-scores">当前学期成绩查看</a></li>
    </ul>
    <button class="btn btn-danger mt-3" onclick="logout()">注销</button>
</div>
<script>
    function logout() {
        sessionStorage.removeItem('role');
        window.location.href = '/login';
    }
</script>
</body>
</html>